package com.example.taobaou.utils;

import android.widget.Toast;

import com.example.taobaou.base.BaseApplcation;

public class TostUtils {

    private static Toast toast;

    public static void showToast(String tips) {
        if (toast == null) {
            toast = Toast.makeText(BaseApplcation.getAppContext(), tips, Toast.LENGTH_SHORT);
        } else {
            toast.setText(tips);
        }
        toast.show();

    }
}
